package Triangle.AbstractSyntaxTrees;

import java.util.*;
import Triangle.AbstractSyntaxTrees.Command;
import Triangle.AbstractSyntaxTrees.Expression;
import Triangle.AbstractSyntaxTrees.Visitor;
import Triangle.SyntacticAnalyzer.SourcePosition;

public class CaseCommand extends Command {

  public CaseCommand (Expression eAST, List<OptionCommand> options, Command cAST, SourcePosition thePosition) {
    super (thePosition);
    E = eAST;
    Options = options;
    C = cAST;
  }

  public Object visit(Visitor v, Object o) {
    return v.visitCaseCommand(this, o);
  }

  public Expression E;
  public List<OptionCommand> Options;
  public Command C;
}